package com.epta.controller;

import com.epta.service.AchievementService;
import com.epta.vo.AchievementBackListVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * Created by Administrator on 2017/10/31 0031.
 */
@Controller
@RequestMapping("b/achievement")
public class AchievementBackController {

    @Autowired
    private AchievementService achievementService;


    @ResponseBody
    @RequestMapping(value = "/",method = RequestMethod.POST)
    public List<AchievementBackListVo> List(Integer role){
        System.out.println("role : " + role);
        return achievementService.queryBackList(role);
    }
}
